Conversation
bus coordinator system for rajpravas - coordinator login and bulk upl…
There was a problem hiding this comment.
Code Review
This pull request introduces a coordinator dashboard, coordinator login, and travel bus management system, including bus creation, passenger assignment, and bulk upload features. The review feedback highlights several critical issues: a runtime TypeError in travelBusDetails.js due to a missing DOM element, a UI-database sync issue in fetchUpcomingBookings.js when reassignment is cancelled, a potential date comparison failure in fetchUpcomingBookings.js, and a Cross-Site Scripting (XSS) vulnerability in coordinatorDashboard.js caused by rendering unescaped user input via innerHTML.
- Add multi-select dropdowns for starting_meal and ending_meal in create and update utsav forms - Hide ending_meal when start and end dates are the same - Hide both meal fields when location is not Research Centre - Pre-fill meal selections on edit form Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…-for-utsav Feat/capture starting ending meal for utsav
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces comprehensive travel bus management features, including a coordinator dashboard, bus creation/editing, passenger assignment, and bulk upload capabilities, alongside updates to Utsav meal options and WiFi code request exports. Key feedback highlights a critical page-load crash in travelBusDetails.js due to a missing DOM element reference, high-severity XSS vulnerabilities in coordinatorDashboard.js and permanentCodeRequests.js from unsafe innerHTML usage, a state inconsistency bug in fetchUpcomingBookings.js during capacity upgrade prompts, and some dead code in travelBusDetails.js that should be removed.
|
@cyrus-sratrc[bot] does this look good? |
Review: PR #136 (dev → main)Large PR (27 files, +7.8k). Mostly a new bus-coordinator system (login/OTP, coordinator dashboard, bus management/details, bulk Excel upload) plus utsav meal fields, wifi router export, and a debounce on bulk-food updates. Verdict: functional and consistent with existing patterns, but one recurring concern worth addressing before merge. ✅ Good
This matches the existing codebase pattern, so it's not a regression — but the new bulk-Excel + free-text paths widen the surface. Recommend an Minor
Want me to apply fixes? I'd suggest the dead-code removal + 401/403 handling + an |
No description provided.